package com.government.web.controller.system;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.government.common.core.controller.BaseController;
import com.government.system.domain.ImMail;
import com.government.system.service.IImMailService;
import com.government.common.core.page.TableDataInfo;

/**
 * 站内信Controller
 *
 * @author system
 * @date 2023-11-10
 */
@RestController
@RequestMapping("/system/imMail")
public class ImMailController extends BaseController {
    @Autowired
    private IImMailService messageService;

    /**
     * 查询用户站内信列表
     */
    @GetMapping("/list")
    public TableDataInfo list() {
        List<ImMail> list = messageService.getUserIImMailList();
        return getDataTable(list);
    }

}
